<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\home\models\MhConfig */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="mh-config-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'cid')->dropDownList(['1' => '基本设置', '2' => 'seo设置']) ?>

    <?= $form->field($model, 'type')->dropDownList(['text' => '文字', 'img' => '图片']); ?>

    <?= $form->field($model, 'key')->textInput(['maxlength' => true])->label('简码 <span style="color:red">【 英文小写 】</span>') ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'value')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'sort')->textInput()->label('排序 <span style="color:red">【 数值越大越靠前 】</span>') ?>

    <div class="form-group">
        <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
